fixed the broken json table by using the old messy shit