change sessionauth methods to instance methods