removed mail stuff and turned off debug