updating upload function, annotation for multiple keys