adding the ability to log the generated code to the console