removed new method, and undo deprecation getAllModules (cherry picked from commit 3f6955f)
removed new method, and undo deprecation getAllModules (cherry picked from commit 39c0922)