linebreaks and error handling