add a timeout to slow scripts