separate out wattsup driver code