adding a conditional brepl support