try using a longer await; fix env variables