minor bug fix, refactoring
removed log file