added support for text interface