add replace_text function and add local bin