add server side logging