fix newline
fix saving data for session