update mockapi
added extra check around parse callback for bad data