pass in CONSTANTS and toSimplify directly instead of decoding strings