remove old code using object sockets