support keeping/renaming function being replaced