removing mutable state from file finder