updating the scala script to work with scala from version 2.10 on