some version fixes and some migrationscripts