fixed flag stuff