add connection and session loss events
lint clean
add test scripts