fix time logger and fixed errfile bug