change files management and add module type option