use logger instead of print as often as possible