read from env first instead of preferences (since it's still our main mode of providing custom settings)