added necessary mandrill code