Implement somes apis