change name in createLayer
read parameters in create layer