simplify the s.sock api