working on getting logger to write to file properly