migration scripts fixes