couple bug fixes
doc fix