api added some functions