add function to allow fake server errors