logging fixes
add gen-sentence convenience function