not real code changes just a refactor to match the same order of api provided
update minified