more net code stuff, cleanup, interface changes. encapsulation