Add debug to category loading