added 1000 lines to mgw.h, need to debug it now