set automatically the home variable