adds setClient function to RedSess