changed getAllResources request
refactoring, better get all resources methd