support hacking on scala close #621