add init for upload