adjusted in line with changes to relextract.py