dispatcher: added waitFor()