We are trying to write an api for loading various resources