add better handling of files