some changes to files.go