add fileinfo support