clean up SOCKS static methods