fixed resource init
tweaked vhost config