added v10 of socket script