updated for compatibility with quantify@0.7.x