hack to break out from endless loop