repository querying now working