add more function to bring up email
improved logger