Updated for api changes

Signed-off-by: portableant <dpett@britishmuseum.org>