adding -i option to env, changing execution handling a bit, not complete