add load resources from dir, merge fetchDocRefs and fetchDocsRefs