fixes for migrations