fixed migration and versions