add virtual directory mapping code