performance tweaks
fixes, docs