variable target ui flush & message bitcount function