refactoring and enabling haproxy for single VM development