added multi module mode