replace multiple tests by error catching in display ressource #14