added error message for yaml parsing