add paste toggle for insert, add scala support