add error handlers for subsription and json users return by the server