added options for querying a permanent view