changing instances of 'bind' to 'listen'