fix: adds resolve_ref flag