cleaned up perport, incuding converting everything to char.
moved geargroups