fixed some things with upload