removing reference in getconfig and adding setConfig