added flagging
moved flag familiarity to the back end