take old services code out of upload.js