catch possible exception on flagging idea