migrate all models to new syntax