added home dir expansion