fixed switch bug, legacy refresh almost to the point of storing updates - still problems with transaction numbers