debug - its not getting categories correctly for some reason