add throw exception on connect, change line separator to unix