added ping server host and port params
removed userProfile function since it's not used