helper functions for parsing ulabels