add dirs if they don't exist, enable line wrapping