drop the write_config way and only write it out with qDebug()
don't try to open file if we don't have a filename