copy of the 'Yiinitializr advanced', for my change