moved Settings to scala