fix email_message dependencies and url