wdots - template. remove mcolor.cpp. change some architucture