fixup: second pass
small comment fix
added genPrompt
add some deepcopy()s