add vhost function and bump version to 1.2.0