added some fileparsing functionality