build script now working as intended