create console like object instead of using the console directly