added nsuserdefaults for cooldowns and flagging