working with files in process