added --use-mate option