unix and windows handling