restructuring ipc to use direct sockets