added client side error logger