generate final files