restructured capture app, working for Kinect