added async stitching code but still has bug