use generator in qnfs