changes while try to fix link error
added some new windows message handlers