add querying for arbitrary attributes with -A option