creating local_env