rename setType -> getType

sounds weird
remove mime dependency