add server side handler