adapt the loader to the new grano loader API.