Add rudimentary support for legacy gadgets

(only one gadget supported)