attempt to deal with [ ] style attributes, but not really