make sure resource's key is locator, not a absolute path