registerScriptHandler and more