moving address flags out of keys