add escript for executable
new design