modified homedir module