add debugging functionality (email, logging, test script)