model functions for script API
added more script API functions
added more functions to scripting API