initial version of the gadget