added support for patients and therapists