improve text expansion controls