searchForCases ist STILL buggy because of nullpointer exceptions!