changed to reflect updates in the pryv API