delete obsolete lines, log ArgumentError