add a force option on replace and tests