added simulated console for cleaner printf output