quick hack to use for scripting