adding server-side scripts