add qwt stuff. remove f references.