tweaks to the downloading procedure. it is not working with android and needs to be debugged.