more refactoring - compose params and capability to atomically set/delete - needs tests