linebreak stuff, finally got it working ok-ish