#1987 allow tags to be used to map profiles to boxes to avoid the complexities of pattern matching