update model to 0.4.0

adapted for migration 0.4.x and core 0.2.2