output file naming system fully implemented