support for code snippets as objects, runs code twice right now