Qpack, a general tool for instrument simulation and retrieval work