fixes revisions bug + scope for resources (excludes folders)