write-commands: only include gle if it is necessary.