fix gen network and clean files