flatten as default export.