improved way of importing and exporting aql queries