experimental file output function