before big refactoring
add logger