add ReplaceWithRegister plugin