bug: just call once file command