better tests for orphaned processes, updated procline code