finished writing the output packages