typo
updated to reflect the new optional wait flag