slight edits
api queries work now