moved to constructor method
write config template not working
moved to create method