better paragraph parsing