error handling, acks and consistently use just new line