simple tool to switch relay state