performance improvements, gettextfieldwidth still broken