write data to a static folder, wrapper can be used in a separate thread