added wrapAsync method to support old versions of meteor