using old downloadfromserver func