improve and fix import bugs
make input module index better readable
Merge branch 'v7-stable' into v8-stable
Merge branch 'v8-stable'