add file length and number of pieces attributes to client class