minor adapter improvement & logger update & beta2 -> beta3
set onMessage prototype & code cleanup