added rudimentary getLabel API