make correct error message print
fixed status bugs and made them case insensitive