fixing ordering bug and trying different direcotries for log files