same as in backend, set parameter optional and not depends from yii debug mode