hopefully fix set_permissions with cloudant