remove any dependency on stat.