add scala support.