refined set and delete handling, basic functionality done (except binary values)