added some functionalities of api