file logging revised.