added pinging functions