some progress with t_env struct