shitty defense against infinite loops