update api for direct download