fix environment variables for live and testnet