added listentosocket()