upgraded to the latest scala