nested refs working because we precompile refs