moved logging to config file