add LAST_EXEC, refactor
Merge branch 'delete_exec'