added model-to-text support