adjusted client sided error logging