generates scala code for new design without opts