introduce log module and remove unused imports