avoid wildcard resolution if we specify enclosing_resources