allow waitTimeout and sleepTime to be overwritten