Add multiply hosts support. Fix #2