authentication fix and other fixes
all the fixes and additions