small refactor of x_t and pull out method to translate from strarray to x_t[]