demo for connection with console