added wait command