add after before callbacks to serve task && require mongoid in task