better configuration and email