use logger instead of println