borrowed Sarshad's SessionLabel class