standardize API methods to have the form: options, success, failure