messing with build script to reduce repeated code