pull logout fn