fixing api env variable