create server and client download functionality