adding simple implementation of console listener