little change to back end to make upload smoother