added a Console function