updated init to use yaml config