fix install issues, improve module name rules