adding/removing task sources and emitting task change events in plugin api