added logout ref