use better refresh method
add cli support
add readme