export useful internals

export queries and extractors; they are well tested and useful in other modules