improve code coverage and update log directory