minor edits to SpencerTron code