support compare & remove debug code
add prompt
add some tests