preparation
IOP Flip: take care of flipping