added a basic listener to be used from CLI