removing misguided replaceElement option and associated logic