extract real method for flagging users

previous extractions did half jobs.
hide the previously extracted functions