added various perror() functions in exec.cpp