WIP
use lib-trace module
trace takes validator function
cleanup cli
snapshot
refactor
snapshot