capture 'vector' API as a local, so we can export a method named vector