migrate old site to ditto
Fix bugs leftover from legacy code