add some functionality to create a gadget