got some code written for controlling wattsup