adding a basic query api with the bare-minimum included