windows bug fixe, add some macros
leave a todo task