use the file resource versus shell