fixed file logging
fixed file logging