ready for development mode
mailing function in production mode
added gem state_machine