remove unnecessary config nodes