replace event with console communcation