repo ref fixes