working pinger loop implemented