fixed problems with optional yaml configuration