fixed some file issues