increase performance for waitFor