tweak
clean up branch/detached detection
update refresh interval