debug and add test cmd