added support for textfields with formatting