handle console output much cleaner