add multind capability
switch to multind, refacture
switch to multind, refacture