small fixes, mainly auth problems
AMCAT-6 #resolved fixed by changing hits queries to query_all