remove unneeded functions, fix ping