make it working
put together email
handle config file