add validation of yaml existing