first shot at querying indexes