handle windows line breaks
close file on error
add windows packaging materials