cleaned up exec.cpp