Added "country" file and fixed some bugs that would break MODX manager.