default to $HOME
fixed typo bug