the very primitive prototype of listen()