remove unnecessary code and fixed new module command