Implement support for serial files

fixes #7393