added error handling when failing to parse catalog