changing constructors due to APi changes done for WSAS-1727
Merge pull request #109 from Nipuni/vhost

changing constructors due to APi changes done for WSAS-1727