WIP migrator

leaving this here in case someone wants this code ...