include return types with wait() call