bug fixed: 2 \n per entry; file open on start