Use newer script context api
Initial bit of host scripting api