add some skeleton classes and api query code