adds flagged endpooint and response