parsing methods for ScriptEngine