make some logging fixes

printf doesn't log to the console??