basic build script, untouched mostly