added pingwait