setting up listening socket