scala backend