change Thorfile to scala