fine tune and add api for zssapp