initial untested draft of pns - mains model redone