improve file donwload in client side