hack to stop errors being catastrophic:-(