preserve pass tempname as second argument to callback in filter