permission update and download-update functionality