refactor vagrant