framework ref fixes