fix legal citations and small tweaks