update model to 0.4.1

adapted model to work with old and new migration files