accounting for x's that appear in tlg/phi ids, fixes #2