improved scripting API

autogen. of script insert menu