fix pid 0 bug and add config for viewing others' code