updated evnironment variable function calls