added wpfviewers and some perf fixes