handle multiple build scenarios; auto compress build pkg
fix merge