add option to set hostname
add options for logging