removed $section from getResource()