added generic file case