some windows related errors fixed