sync repo

rework exceptions
mark adapter as final
short array syntax + couple of minors
add a simple session test
serval minor