handle environment for ipconfig