adding upload ability to server
work on client