set env of path and exec