rename portal to scala and change bash replace rule