refine build-script api
fix build
merge unstable into browser - fix build