fix screen rotation, change line breaks to unix style