fix replication of re removed docs

cleaned up version of #2018