re-comple pi-switch