added option to specify host name as arg