make stay-on-table code match wiring diagrams