more updates to api and build process