fixing notification/messages in rake tasks