reimplemented firebase download