adding master check for refs