added server error to controller