fixup things for code snippets to work