fixes env not being loaded in file loader