fix to env loading