This a usefull xdb_file that creates drirectory Hash for users and saves the user.xmls under it. It was usefull for me because I don't get to see all my user.xmls under a single directory, but get them under 0-999 directory hash. Easiest way to test this code is to save your xdb_file.c and rename xdb_hash.c to xdb_file.c and recompile. Note that your old users will have to either re-register or you have to move their xmls into the appropriate directory hash ! zad jid: zad@jabber.org email: zadk@mynet.com