attempt to add some file logging support