added loops, remove_translate, and invert to scripting language