replica commands
Merged from evan and handled conflict