rewrite exec, no debug yet!