simple deftype parsing