unlink the stderr file
fix null-string marshalling and unmarshalling
remove some dead code