increased timeout to 1000ms (sometimes 100ms was too fast)