Add rudimentary support for legacy gadgets

Closes #63

(only one gadget supported)