detect hostname
set defaults