add reading of RESOURCE DIRECTORY