added mock config and fixed a bug with existing log file removal