working compile/indexing