rebuild script for release branch