simple-p2p: separated file metadata from file