clean up the oscope code a little bit