added server side scripts