added wait files, initial attempt at least!