split socket into public and private;