fix all query for documents + add byFullPath query
better error handling for display commands