now we simply map the formats to types by hardcoding, this should be configurable 