create one compilation unit for each beta function