xid cleanup
implemented add_auth