use ids instead of emails for messages