moved printing/logging to separate class