fix has method + add debug static method