fix get_text_directions, merge get_steps