now uses HOME environment variable