Rlig and stylistic sets

Hi all, I’m working on a typeface with an alternate for almost every character. In addition to that, some characters also have .bold alternates that are triggered by # ifdef within the rlig feature.

So far so good, BUT: rlig also kicks in when it’s not supposed to. For example: “A” has a bold alternate, but “A.ss01” doesn’t. Whenever I want to use A.ss01 in a bolder weight it’s automatically replaced by A.bold (wrong shape).

I tried ordering the features so that ss01 comes before rlig but to no avail.
Any ideas how to avoid this unwanted subbing? Are there ways to make exceptions to the rlig feature?

thank you :^)

Do not just sub A, but also A.bold.