logger and inital flags
flags updating after 16 bit operation