be careful in multishared (and workaround query errors)