removing old cfg object