add support for text input