cleanings
export some counters

and better handling of the items stored in the recovery table
minor cleanings