merges embargo indexing code from tdl_hydra_head