add mail system and logging system to the project