refactored to exclude the usage of socket on client side. Moved to webtracker lib.