fix files required and shorten script