create and export a hub definition