prepare for upload functionality