clean up some problems with custom tex assignment order of operations