errors should return properly