closer to getting upload working