temporarily commented out creating remote sockets for testing
added helper function to parse client requests