wrap parsing in a try-catch and call the callback with the error if it occurs, better to be safe than sorry