bug fixes with reading config.yml