adding socket and sandbox