remove dependency on flask from iatidq