restore some documentation for old replace functions