small fix for file processing