CFY-287 add download_resource api to ctx and manager