adapting to change in nif core services api.
Fixes issue #140