migrating user to scala