reauth implimented and seems to be working. needs to be tested. other fixes