modified my_open, my_bind to put sockets at open