update
add console mode