Osp parties extraction: improved algorithm