partially implemented the chunk server