add getHomeDirectory() method