changed to auto-add newlines