client side error logging
updated