updated the library to ping for fault tolerance