added a try/catch for unknown content types