fudged the logger more by opening the file every time we log
will be fixed with full changeover to the logging architechure