added support for styled labels