added yaml config parsing