added untested ping saving/checking code. still need to implement sms