changed signature for indexer callback