context fixes
authentication overhaul