files download and minor bug fixes