wave generator - first attempt - do not count on API