trying to fix AQL problems