mail address test
removed global.ts and code cleaned up