added blender/gadget code