add updated to use environment variables