replaced static path to etc with variable