fixed bug with bin-hostname