added attach function and attachRun* execs