added documentation for listen