better handling of square brackets in card and interface names