implemented basic file processing