refactored module-realted function into a new component (module-utils)