module index, speedup module completion and resolve