took a bit of hackery, but I believe I've got the conditional, recursive
prefixer working