add io snippet to d-mode