trying to avoid a deadlock with a timeout