adding improvements to netconfig script