now ignores non-file objects