fixing up file logging a teensy bit