updated apply_qwarp to make output in cwd