added query parameters for position/candidate queries
added handler for photos