split file by context