disabling debug ping distance and adding error checks