update for new upload scheme.