move and fix getClaims script