remove un-used vars from socket wrapper