update pinger, code cleanup