added wait.h library