minor change to make email work
application script should be 100% functional