updated index.py
updated environment var name in index.py
made the service var consistent