Add multiply hosts support. Fix #1