first implementation of up load to server.