made some fixes to AIC querying, still not returning results for some reason