fixed upload, json response and api namespace