more programming on emails,  not ready yet