add bindSocket method