add server-side script support