added option to specify user home directory mode