adjust api structure.