739 add extra options to query

Adds another parameter, documents the previous changes and deals with the "extras" parameters used by extensions