added module mode