console output for main loop (not working correctly yet)