fixes to flap