scrapping logout base function