updated dispatcher to send general messaging function, first param error message, second param data object of sucessful result, also fixed up pinger a bit