refactored mandrill dispatcher