separated file with header by device ID