added logger, lines now printing properly