getting queries to work... in progress
new endpoints