adding label api support