trying to figure out timeout bug