functions to handle privata pwds files