socket: some creation fixes