fixed behaviour for multiple peers, newlines in logfile