attempting to fix the timeout handler