added files stats to the api