add option: declareModule, default true, to only get the moduleName