basic features to query by identifier (needs fixes)