added getObjectsByName method