added some file processing, ui changes