adding the meat of the extension