adds functions to create generated files