add more api for gui