ensure to create output directory during export