fixed status bugs and made them case insensitive