a bit of decoupling and migrations path yii compatibility