made build script more configurable