changed logging to file for testing