working on win7, win8, macOSX