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