updated to work with new Yii2 api