replace prints with loggers