make sniff work with different OS and different newlines