add try for await env