basic implementation of file output plugin