replaced hardcoded paths with environment variables