refactored virtual directory resource