codegen rework to allow log function comments