adding the ability to log to the console