lib add getText method