updated module management script