move logger to separate class