add read from file for qdformat