change IQ.Type to enum

fix toString