added support for '-' in filenames