major refactoring:
changed vhosts to defines