add TODO to remove dependency of var_ref in func_invocation