more perror fixups
last batch of perror fixes