basic type parsing