added MIME via fileinfo in download_library