add vhost support; close #3