modifying module factory