improved error handling for missing yaml elements
improved error handling for missing yaml elements