#109 escape utils and script function