further improve command line
fix wrong announcement when no hostname is set therefore host_id is 0