preliminary qwt debugging work