add option to set hostname
let config file be passed as an argument