work on dm with vty(input)