create folder function and upgrade version