add multi-task support

fix web api