added default setenv script
return errors & changed token name
add use lodash, make all operations sync