updated some broken code
fixed auth_session_engine