add more debug info
add scan writable
add scan and scanner #9