added comments and made nscd purgable