fix email message api and admin
del unused imports