add config.js file and clean up email/sms sending