remove use of environ for system variables