added listen script and simplified