updates for different file handling