improve build script for hopper