introduced procid; cleanup and reorg