modify upload function and start of swiftclient exception parsing function