changed the server side scripts