update some function for download and string util