refactorer __construct() method on modules with default options