added wait.h library file