move yaml file loading to separate class