add storagedir parameter for on demand streaming