added yaml error throwing