modularized distributed invlpg
made Module methods protected