cleanup
.dll build fixes (not tested)
cleanup
fixes
notes
remove pd static code