adding parse set_env parameter and export params in worker