added handling for get all resources