add examples for virtualhost management + refactoring examples