put rewrite

Better compatibility with cross string output