add multi output for api