use hash tables for meta + inserts, queue inserts